import {createStore,applyMiddleware} from 'redux'
import rootReducer from '../reducers.js'
import {composeWithDevTools} from 'redux-devtools-extension'
import {createLogger} from 'redux-logger'
import thunk from 'redux-thunk'

let logger=createLogger()

let store= createStore(rootReducer,composeWithDevTools(applyMiddleware(thunk,logger)))

export default store